package org.redog.applicationcontext;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.redog.applicationcontext.service.UserService;
import org.springframework.context.ApplicationContext;
/**
 * Hello world!
 *
 */
public class App 
{
    @SuppressWarnings({ "unused", "resource" })
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        ApplicationContext applicationcontext = new ClassPathXmlApplicationContext("beans.xml");
        UserService userService = (UserService)applicationcontext.getBean("userService");
        System.out.println(userService);
    }
}
